const cp = require('cp');
require('../edit/page.css');
require('./page.css');
let moduleExport = {};

let vm = avalon.define({
  $id: 'mc_step4_view',
  shoptempname: '',
  wxapp: {
    authorizerappid: '', // 授权方appid
    signature: '', // 账号介绍
    principalname: '', // 主体名称
  },
  init: () => {
    cp.ajaxUrl({
      controller: 'shopskt',
      cmd: 'com.rel.porg.pb.shop_sel_shopexp_req',
      data: {},
      success: res => {
        vm.shoptempname = res.temp.title;
        vm.wxapp = res.wxapp;
      },
      fail: res => {
        cp.layerMsg(res.desc);
      },
    });
  },
});
vm.init();
moduleExport.content = require('./content.html');
moduleExport.vm = vm;
module.exports = moduleExport;
